<?php
	class MblogModel extends Model
	{
		public function MblogModel()
		{
			parent::Model();
		}

		public function add($mblog)
		{
			$this->load->database();
			$this->db->insert('mblog', $mblog);
		}

		public function getMblog($id)
		{
			$this->load->database();
			$result = $this->db->get_where('mblog', array('id' => $id), 1, 0)->result();
			return $result ? $result : False;
		}
	}
?>